<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>第4章 Linux网络编程</title><style>
/* cspell:disable-file */
/* webkit printing magic: print all background colors */
html {
	-webkit-print-color-adjust: exact;
}
* {
	box-sizing: border-box;
	-webkit-print-color-adjust: exact;
}

html,
body {
	margin: 0;
	padding: 0;
}
@media only screen {
	body {
		margin: 2em auto;
		max-width: 900px;
		color: rgb(55, 53, 47);
	}
}

body {
	line-height: 1.5;
	white-space: pre-wrap;
}

a,
a.visited {
	color: inherit;
	text-decoration: underline;
}

.pdf-relative-link-path {
	font-size: 80%;
	color: #444;
}

h1,
h2,
h3 {
	letter-spacing: -0.01em;
	line-height: 1.2;
	font-weight: 600;
	margin-bottom: 0;
}

.page-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 0.75em;
}

h1 {
	font-size: 1.875rem;
	margin-top: 1.875rem;
}

h2 {
	font-size: 1.5rem;
	margin-top: 1.5rem;
}

h3 {
	font-size: 1.25rem;
	margin-top: 1.25rem;
}

.source {
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 1.5em;
	word-break: break-all;
}

.callout {
	border-radius: 3px;
	padding: 1rem;
}

figure {
	margin: 1.25em 0;
	page-break-inside: avoid;
}

figcaption {
	opacity: 0.5;
	font-size: 85%;
	margin-top: 0.5em;
}

mark {
	background-color: transparent;
}

.indented {
	padding-left: 1.5em;
}

hr {
	background: transparent;
	display: block;
	width: 100%;
	height: 1px;
	visibility: visible;
	border: none;
	border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}

img {
	max-width: 100%;
}

@media only print {
	img {
		max-height: 100vh;
		object-fit: contain;
	}
}

@page {
	margin: 1in;
}

.collection-content {
	font-size: 0.875rem;
}

.column-list {
	display: flex;
	justify-content: space-between;
}

.column {
	padding: 0 1em;
}

.column:first-child {
	padding-left: 0;
}

.column:last-child {
	padding-right: 0;
}

.table_of_contents-item {
	display: block;
	font-size: 0.875rem;
	line-height: 1.3;
	padding: 0.125rem;
}

.table_of_contents-indent-1 {
	margin-left: 1.5rem;
}

.table_of_contents-indent-2 {
	margin-left: 3rem;
}

.table_of_contents-indent-3 {
	margin-left: 4.5rem;
}

.table_of_contents-link {
	text-decoration: none;
	opacity: 0.7;
	border-bottom: 1px solid rgba(55, 53, 47, 0.18);
}

table,
th,
td {
	border: 1px solid rgba(55, 53, 47, 0.09);
	border-collapse: collapse;
}

table {
	border-left: none;
	border-right: none;
}

th,
td {
	font-weight: normal;
	padding: 0.25em 0.5em;
	line-height: 1.5;
	min-height: 1.5em;
	text-align: left;
}

th {
	color: rgba(55, 53, 47, 0.6);
}

ol,
ul {
	margin: 0;
	margin-block-start: 0.6em;
	margin-block-end: 0.6em;
}

li > ol:first-child,
li > ul:first-child {
	margin-block-start: 0.6em;
}

ul > li {
	list-style: disc;
}

ul.to-do-list {
	padding-inline-start: 0;
}

ul.to-do-list > li {
	list-style: none;
}

.to-do-children-checked {
	text-decoration: line-through;
	opacity: 0.375;
}

ul.toggle > li {
	list-style: none;
}

ul {
	padding-inline-start: 1.7em;
}

ul > li {
	padding-left: 0.1em;
}

ol {
	padding-inline-start: 1.6em;
}

ol > li {
	padding-left: 0.2em;
}

.mono ol {
	padding-inline-start: 2em;
}

.mono ol > li {
	text-indent: -0.4em;
}

.toggle {
	padding-inline-start: 0em;
	list-style-type: none;
}

/* Indent toggle children */
.toggle > li > details {
	padding-left: 1.7em;
}

.toggle > li > details > summary {
	margin-left: -1.1em;
}

.selected-value {
	display: inline-block;
	padding: 0 0.5em;
	background: rgba(206, 205, 202, 0.5);
	border-radius: 3px;
	margin-right: 0.5em;
	margin-top: 0.3em;
	margin-bottom: 0.3em;
	white-space: nowrap;
}

.collection-title {
	display: inline-block;
	margin-right: 1em;
}

.page-description {
    margin-bottom: 2em;
}

.simple-table {
	margin-top: 1em;
	font-size: 0.875rem;
	empty-cells: show;
}
.simple-table td {
	height: 29px;
	min-width: 120px;
}

.simple-table th {
	height: 29px;
	min-width: 120px;
}

.simple-table-header-color {
	background: rgb(247, 246, 243);
	color: black;
}
.simple-table-header {
	font-weight: 500;
}

time {
	opacity: 0.5;
}

.icon {
	display: inline-block;
	max-width: 1.2em;
	max-height: 1.2em;
	text-decoration: none;
	vertical-align: text-bottom;
	margin-right: 0.5em;
}

img.icon {
	border-radius: 3px;
}

.user-icon {
	width: 1.5em;
	height: 1.5em;
	border-radius: 100%;
	margin-right: 0.5rem;
}

.user-icon-inner {
	font-size: 0.8em;
}

.text-icon {
	border: 1px solid #000;
	text-align: center;
}

.page-cover-image {
	display: block;
	object-fit: cover;
	width: 100%;
	max-height: 30vh;
}

.page-header-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.page-header-icon-with-cover {
	margin-top: -0.72em;
	margin-left: 0.07em;
}

.page-header-icon img {
	border-radius: 3px;
}

.link-to-page {
	margin: 1em 0;
	padding: 0;
	border: none;
	font-weight: 500;
}

p > .user {
	opacity: 0.5;
}

td > .user,
td > time {
	white-space: nowrap;
}

input[type="checkbox"] {
	transform: scale(1.5);
	margin-right: 0.6em;
	vertical-align: middle;
}

p {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.image {
	border: none;
	margin: 1.5em 0;
	padding: 0;
	border-radius: 0;
	text-align: center;
}

.code,
code {
	background: rgba(135, 131, 120, 0.15);
	border-radius: 3px;
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-size: 85%;
	tab-size: 2;
}

code {
	color: #eb5757;
}

.code {
	padding: 1.5em 1em;
}

.code-wrap {
	white-space: pre-wrap;
	word-break: break-all;
}

.code > code {
	background: none;
	padding: 0;
	font-size: 100%;
	color: inherit;
}

blockquote {
	font-size: 1.25em;
	margin: 1em 0;
	padding-left: 1em;
	border-left: 3px solid rgb(55, 53, 47);
}

.bookmark {
	text-decoration: none;
	max-height: 8em;
	padding: 0;
	display: flex;
	width: 100%;
	align-items: stretch;
}

.bookmark-title {
	font-size: 0.85em;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 1.75em;
	white-space: nowrap;
}

.bookmark-text {
	display: flex;
	flex-direction: column;
}

.bookmark-info {
	flex: 4 1 180px;
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bookmark-image {
	width: 33%;
	flex: 1 1 180px;
	display: block;
	position: relative;
	object-fit: cover;
	border-radius: 1px;
}

.bookmark-description {
	color: rgba(55, 53, 47, 0.6);
	font-size: 0.75em;
	overflow: hidden;
	max-height: 4.5em;
	word-break: break-word;
}

.bookmark-href {
	font-size: 0.75em;
	margin-top: 0.25em;
}

.sans { font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; }
.code { font-family: "SFMono-Regular", Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace; }
.serif { font-family: Lyon-Text, Georgia, ui-serif, serif; }
.mono { font-family: iawriter-mono, Nitti, Menlo, Courier, monospace; }
.pdf .sans { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol", 'Twemoji', 'Noto Color Emoji', 'Noto Sans CJK JP'; }
.pdf:lang(zh-CN) .sans { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol", 'Twemoji', 'Noto Color Emoji', 'Noto Sans CJK SC'; }
.pdf:lang(zh-TW) .sans { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol", 'Twemoji', 'Noto Color Emoji', 'Noto Sans CJK TC'; }
.pdf:lang(ko-KR) .sans { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol", 'Twemoji', 'Noto Color Emoji', 'Noto Sans CJK KR'; }
.pdf .code { font-family: Source Code Pro, "SFMono-Regular", Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace, 'Twemoji', 'Noto Color Emoji', 'Noto Sans Mono CJK JP'; }
.pdf:lang(zh-CN) .code { font-family: Source Code Pro, "SFMono-Regular", Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace, 'Twemoji', 'Noto Color Emoji', 'Noto Sans Mono CJK SC'; }
.pdf:lang(zh-TW) .code { font-family: Source Code Pro, "SFMono-Regular", Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace, 'Twemoji', 'Noto Color Emoji', 'Noto Sans Mono CJK TC'; }
.pdf:lang(ko-KR) .code { font-family: Source Code Pro, "SFMono-Regular", Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace, 'Twemoji', 'Noto Color Emoji', 'Noto Sans Mono CJK KR'; }
.pdf .serif { font-family: PT Serif, Lyon-Text, Georgia, ui-serif, serif, 'Twemoji', 'Noto Color Emoji', 'Noto Serif CJK JP'; }
.pdf:lang(zh-CN) .serif { font-family: PT Serif, Lyon-Text, Georgia, ui-serif, serif, 'Twemoji', 'Noto Color Emoji', 'Noto Serif CJK SC'; }
.pdf:lang(zh-TW) .serif { font-family: PT Serif, Lyon-Text, Georgia, ui-serif, serif, 'Twemoji', 'Noto Color Emoji', 'Noto Serif CJK TC'; }
.pdf:lang(ko-KR) .serif { font-family: PT Serif, Lyon-Text, Georgia, ui-serif, serif, 'Twemoji', 'Noto Color Emoji', 'Noto Serif CJK KR'; }
.pdf .mono { font-family: PT Mono, iawriter-mono, Nitti, Menlo, Courier, monospace, 'Twemoji', 'Noto Color Emoji', 'Noto Sans Mono CJK JP'; }
.pdf:lang(zh-CN) .mono { font-family: PT Mono, iawriter-mono, Nitti, Menlo, Courier, monospace, 'Twemoji', 'Noto Color Emoji', 'Noto Sans Mono CJK SC'; }
.pdf:lang(zh-TW) .mono { font-family: PT Mono, iawriter-mono, Nitti, Menlo, Courier, monospace, 'Twemoji', 'Noto Color Emoji', 'Noto Sans Mono CJK TC'; }
.pdf:lang(ko-KR) .mono { font-family: PT Mono, iawriter-mono, Nitti, Menlo, Courier, monospace, 'Twemoji', 'Noto Color Emoji', 'Noto Sans Mono CJK KR'; }
.highlight-default {
	color: rgba(55, 53, 47, 1);
}
.highlight-gray {
	color: rgba(120, 119, 116, 1);
	fill: rgba(120, 119, 116, 1);
}
.highlight-brown {
	color: rgba(159, 107, 83, 1);
	fill: rgba(159, 107, 83, 1);
}
.highlight-orange {
	color: rgba(217, 115, 13, 1);
	fill: rgba(217, 115, 13, 1);
}
.highlight-yellow {
	color: rgba(203, 145, 47, 1);
	fill: rgba(203, 145, 47, 1);
}
.highlight-teal {
	color: rgba(68, 131, 97, 1);
	fill: rgba(68, 131, 97, 1);
}
.highlight-blue {
	color: rgba(51, 126, 169, 1);
	fill: rgba(51, 126, 169, 1);
}
.highlight-purple {
	color: rgba(144, 101, 176, 1);
	fill: rgba(144, 101, 176, 1);
}
.highlight-pink {
	color: rgba(193, 76, 138, 1);
	fill: rgba(193, 76, 138, 1);
}
.highlight-red {
	color: rgba(212, 76, 71, 1);
	fill: rgba(212, 76, 71, 1);
}
.highlight-gray_background {
	background: rgba(241, 241, 239, 1);
}
.highlight-brown_background {
	background: rgba(244, 238, 238, 1);
}
.highlight-orange_background {
	background: rgba(251, 236, 221, 1);
}
.highlight-yellow_background {
	background: rgba(251, 243, 219, 1);
}
.highlight-teal_background {
	background: rgba(237, 243, 236, 1);
}
.highlight-blue_background {
	background: rgba(231, 243, 248, 1);
}
.highlight-purple_background {
	background: rgba(244, 240, 247, 0.8);
}
.highlight-pink_background {
	background: rgba(249, 238, 243, 0.8);
}
.highlight-red_background {
	background: rgba(253, 235, 236, 1);
}
.block-color-default {
	color: inherit;
	fill: inherit;
}
.block-color-gray {
	color: rgba(120, 119, 116, 1);
	fill: rgba(120, 119, 116, 1);
}
.block-color-brown {
	color: rgba(159, 107, 83, 1);
	fill: rgba(159, 107, 83, 1);
}
.block-color-orange {
	color: rgba(217, 115, 13, 1);
	fill: rgba(217, 115, 13, 1);
}
.block-color-yellow {
	color: rgba(203, 145, 47, 1);
	fill: rgba(203, 145, 47, 1);
}
.block-color-teal {
	color: rgba(68, 131, 97, 1);
	fill: rgba(68, 131, 97, 1);
}
.block-color-blue {
	color: rgba(51, 126, 169, 1);
	fill: rgba(51, 126, 169, 1);
}
.block-color-purple {
	color: rgba(144, 101, 176, 1);
	fill: rgba(144, 101, 176, 1);
}
.block-color-pink {
	color: rgba(193, 76, 138, 1);
	fill: rgba(193, 76, 138, 1);
}
.block-color-red {
	color: rgba(212, 76, 71, 1);
	fill: rgba(212, 76, 71, 1);
}
.block-color-gray_background {
	background: rgba(241, 241, 239, 1);
}
.block-color-brown_background {
	background: rgba(244, 238, 238, 1);
}
.block-color-orange_background {
	background: rgba(251, 236, 221, 1);
}
.block-color-yellow_background {
	background: rgba(251, 243, 219, 1);
}
.block-color-teal_background {
	background: rgba(237, 243, 236, 1);
}
.block-color-blue_background {
	background: rgba(231, 243, 248, 1);
}
.block-color-purple_background {
	background: rgba(244, 240, 247, 0.8);
}
.block-color-pink_background {
	background: rgba(249, 238, 243, 0.8);
}
.block-color-red_background {
	background: rgba(253, 235, 236, 1);
}
.select-value-color-interactiveBlue { background-color: rgba(35, 131, 226, .07); }
.select-value-color-pink { background-color: rgba(245, 224, 233, 1); }
.select-value-color-purple { background-color: rgba(232, 222, 238, 1); }
.select-value-color-green { background-color: rgba(219, 237, 219, 1); }
.select-value-color-gray { background-color: rgba(227, 226, 224, 1); }
.select-value-color-translucentGray { background-color: rgba(255, 255, 255, 0.0375); }
.select-value-color-orange { background-color: rgba(250, 222, 201, 1); }
.select-value-color-brown { background-color: rgba(238, 224, 218, 1); }
.select-value-color-red { background-color: rgba(255, 226, 221, 1); }
.select-value-color-yellow { background-color: rgba(253, 236, 200, 1); }
.select-value-color-blue { background-color: rgba(211, 229, 239, 1); }
.select-value-color-pageGlass { background-color: undefined; }
.select-value-color-washGlass { background-color: undefined; }

.checkbox {
	display: inline-flex;
	vertical-align: text-bottom;
	width: 16;
	height: 16;
	background-size: 16px;
	margin-left: 2px;
	margin-right: 5px;
}

.checkbox-on {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%2358A9D7%22%2F%3E%0A%3Cpath%20d%3D%22M6.71429%2012.2852L14%204.9995L12.7143%203.71436L6.71429%209.71378L3.28571%206.2831L2%207.57092L6.71429%2012.2852Z%22%20fill%3D%22white%22%2F%3E%0A%3C%2Fsvg%3E");
}

.checkbox-off {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%220.75%22%20y%3D%220.75%22%20width%3D%2214.5%22%20height%3D%2214.5%22%20fill%3D%22white%22%20stroke%3D%22%2336352F%22%20stroke-width%3D%221.5%22%2F%3E%0A%3C%2Fsvg%3E");
}
	
</style></head><body><article id="124cb2cb-782b-4ba0-9b18-6513f52464c9" class="page sans"><header><h1 class="page-title"><strong>第4章 Linux网络编程</strong></h1><p class="page-description"></p></header><div class="page-body"><figure id="0cf8fd06-6552-4bf2-9d8d-698f819114ca" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%201%20%E7%BD%91%E7%BB%9C%E7%BB%93%E6%9E%84%E6%A8%A1%E5%BC%8F%200cf8fd0665524bf29d8d698f819114ca.html">4.1 网络结构模式</a></figure><figure id="dade54e3-819c-4041-8695-3742e273e4d4" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%202-4%203%20MAC%E5%9C%B0%E5%9D%80%EF%BC%8CIP%E5%9C%B0%E5%9D%80%EF%BC%8C%E7%AB%AF%E5%8F%A3%20dade54e3819c404186953742e273e4d4.html">4.2-4.3 MAC地址，IP地址，端口</a></figure><figure id="91779cb2-acba-484b-b393-59d8f1cb8c86" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%204%20%E7%BD%91%E7%BB%9C%E6%A8%A1%E5%9E%8B%2091779cb2acba484bb39359d8f1cb8c86.html">4.4 网络模型</a></figure><figure id="3c297d98-c44d-4278-9266-387948342503" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%205%20%E5%8D%8F%E8%AE%AE%203c297d98c44d42789266387948342503.html">4.5 协议</a></figure><figure id="6dbd582d-c72b-4ae2-b188-ba5a0110dad5" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%206-4%207%20%E7%BD%91%E7%BB%9C%E9%80%9A%E4%BF%A1%E7%9A%84%E8%BF%87%E7%A8%8B%206dbd582dc72b4ae2b188ba5a0110dad5.html">4.6-4.7 网络通信的过程</a></figure><figure id="47c81c54-ab10-4ebf-8eb4-93077a5d401f" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%208%20socket%E4%BB%8B%E7%BB%8D%2047c81c54ab104ebf8eb493077a5d401f.html">4.8 socket介绍</a></figure><figure id="57356b0d-440f-4f4e-9319-c9e14b46473e" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%209%20%E5%AD%97%E8%8A%82%E5%BA%8F%2057356b0d440f4f4e9319c9e14b46473e.html">4.9 字节序</a></figure><figure id="508d187e-7dac-42d0-8719-4b41c25291d2" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2010%20%E5%AD%97%E8%8A%82%E5%BA%8F%E8%BD%AC%E6%8D%A2%E5%87%BD%E6%95%B0%20508d187e7dac42d087194b41c25291d2.html">4.10 字节序转换函数</a></figure><figure id="b1e64a9f-bbce-4170-9302-4cb220b1cd2b" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2011%20socket%E5%9C%B0%E5%9D%80%20b1e64a9fbbce417093024cb220b1cd2b.html">4.11 socket地址</a></figure><figure id="16b947af-0037-496d-9aca-ec3adab89436" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2012%20IP%E5%9C%B0%E5%9D%80%E8%BD%AC%E6%8D%A2%E5%87%BD%E6%95%B0%2016b947af0037496d9acaec3adab89436.html">4.12 IP地址转换函数</a></figure><figure id="7f715b81-9b94-4ecb-b073-e9997bdaf71a" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2013%20TCP%E9%80%9A%E4%BF%A1%E6%B5%81%E7%A8%8B%207f715b819b944ecbb073e9997bdaf71a.html">4.13 TCP通信流程</a></figure><figure id="9b23ec41-b9a4-455a-8e4a-596e8d6a9823" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2014%20socket%E5%87%BD%E6%95%B0%209b23ec41b9a4455a8e4a596e8d6a9823.html">4.14 socket函数</a></figure><figure id="1edd804f-2fd6-4bd9-897e-41723633ff04" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2015%20TCP%E9%80%9A%E4%BF%A1%E5%AE%9E%E7%8E%B0%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF%201edd804f2fd64bd9897e41723633ff04.html">4.15 TCP通信实现服务器端</a></figure><figure id="2996436c-aa11-400e-8c62-e77dca3a9682" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2016%20TCP%E9%80%9A%E4%BF%A1%E5%AE%9E%E7%8E%B0%E5%AE%A2%E6%88%B7%E7%AB%AF%202996436caa11400e8c62e77dca3a9682.html">4.16 TCP通信实现客户端</a></figure><figure id="608ffe0e-6995-4a93-8f5a-cd1bc30ee914" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2017%20TCP%E4%B8%89%E6%AC%A1%E6%8F%A1%E6%89%8B%20608ffe0e69954a938f5acd1bc30ee914.html">4.17 TCP三次握手</a></figure><figure id="3cfa3805-6e7d-4c21-949e-38e10139afbd" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2018%20%E6%BB%91%E5%8A%A8%E7%AA%97%E5%8F%A3%203cfa38056e7d4c21949e38e10139afbd.html">4.18 滑动窗口</a></figure><figure id="acd35a84-6ec2-4cb6-b5d0-df5477b15812" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2019%20TCP%E5%9B%9B%E6%AC%A1%E6%8C%A5%E6%89%8B%20acd35a846ec24cb6b5d0df5477b15812.html">4.19 TCP四次挥手</a></figure><figure id="f006718e-0757-4b73-998b-5a8a37989855" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2020-4%2021%20%E5%A4%9A%E8%BF%9B%E7%A8%8B%E5%AE%9E%E7%8E%B0%E5%B9%B6%E5%8F%91%E6%9C%8D%E5%8A%A1%E5%99%A8%20f006718e07574b73998b5a8a37989855.html">4.20-4.21 多进程实现并发服务器</a></figure><figure id="d7947093-6a34-4a2f-a0c4-ddbb0ec9b8b1" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2022%20%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%AE%9E%E7%8E%B0%E5%B9%B6%E5%8F%91%E6%9C%8D%E5%8A%A1%E5%99%A8%20d79470936a344a2fa0c4ddbb0ec9b8b1.html">4.22 多线程实现并发服务器</a></figure><figure id="50cdbd9b-c814-4b3f-b8bc-6bf8837d2453" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2023%20TCP%E7%8A%B6%E6%80%81%E8%BD%AC%E6%8D%A2%2050cdbd9bc8144b3fb8bc6bf8837d2453.html">4.23 TCP状态转换</a></figure><figure id="aeed4131-86f3-4ac0-b549-9de970a3847b" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2024%20%E5%8D%8A%E5%85%B3%E9%97%AD%EF%BC%8C%E7%AB%AF%E5%8F%A3%E5%A4%8D%E7%94%A8%20aeed413186f34ac0b5499de970a3847b.html">4.24 半关闭，端口复用</a></figure><figure id="3c72727b-440e-44e7-b517-3061bdd79a82" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2025%20IO%E5%A4%9A%E8%B7%AF%E5%A4%8D%E7%94%A8%E7%AE%80%E4%BB%8B%203c72727b440e44e7b5173061bdd79a82.html">4.25 IO多路复用简介</a></figure><figure id="56681887-eb80-48c5-a4bd-b28038afbe14" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2026%20select%20API%E4%BB%8B%E7%BB%8D%2056681887eb8048c5a4bdb28038afbe14.html">4.26 select API介绍</a></figure><figure id="92ea46f9-aae2-4941-9480-3185e3f0e161" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2027%20select%E4%BB%A3%E7%A0%81%E7%BC%96%E5%86%99%2092ea46f9aae2494194803185e3f0e161.html">4.27 select代码编写</a></figure><figure id="c7e92115-0335-4092-aa6d-d5a5adfdc2b6" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2028%20poll%20API%E4%BB%8B%E7%BB%8D%E5%8F%8A%E4%BB%A3%E7%A0%81%E7%BC%96%E5%86%99%20c7e9211503354092aa6dd5a5adfdc2b6.html">4.28 poll API介绍及代码编写</a></figure><figure id="38a598f5-a402-4e6c-91e8-bbb9680e61b2" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2029%20epoll%20API%E4%BB%8B%E7%BB%8D%2038a598f5a4024e6c91e8bbb9680e61b2.html">4.29 epoll API介绍</a></figure><figure id="26b04030-bc23-4f8c-a1eb-db050c323925" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2030%20epoll%E4%BB%A3%E7%A0%81%E7%BC%96%E5%86%99%2026b04030bc234f8ca1ebdb050c323925.html">4.30 epoll代码编写</a></figure><figure id="645629db-4e96-4135-b034-86d4d7c6cba4" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2031%20epoll%E7%9A%84%E4%B8%A4%E7%A7%8D%E5%B7%A5%E4%BD%9C%E6%A8%A1%E5%BC%8F%20645629db4e964135b03486d4d7c6cba4.html">4.31 epoll的两种工作模式</a></figure><figure id="981c133b-4486-4365-b2b3-27cc66f845f7" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2032%20UDP%E9%80%9A%E4%BF%A1%E5%AE%9E%E7%8E%B0%20981c133b44864365b2b327cc66f845f7.html">4.32 UDP通信实现</a></figure><figure id="2fe31646-ef38-401b-be24-626ca3078944" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2033%20%E5%B9%BF%E6%92%AD%202fe31646ef38401bbe24626ca3078944.html">4.33 广播</a></figure><figure id="a033ae75-18fd-456e-8e7d-d69f086d40c5" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2034%20%E7%BB%84%E6%92%AD%20a033ae7518fd456e8e7dd69f086d40c5.html">4.34 组播</a></figure><figure id="995c92a8-e4ad-408c-ad01-4468aa3ccb12" class="link-to-page"><a href="%E7%AC%AC4%E7%AB%A0%20Linux%E7%BD%91%E7%BB%9C%E7%BC%96%E7%A8%8B%20124cb2cb782b4ba09b186513f52464c9/4%2035%20%E6%9C%AC%E5%9C%B0%E5%A5%97%E6%8E%A5%E5%AD%97%E9%80%9A%E4%BF%A1%20995c92a8e4ad408cad014468aa3ccb12.html">4.35 本地套接字通信</a></figure><p id="05da2a75-cd15-48ba-beaf-9007265ba833" class="">
</p></div></article></body></html>